package nl.windgazer.arachne.services.messages;

import java.util.Locale;

/**
 * ValueObject for inMemory storage of translated messages.
 * @author mreuring
 *
 */
public class TranslatedMessageVO {

	private String msg;
	private String pageName;
	private Locale locale;
	private String key;

	public TranslatedMessageVO(final String key, final String msg, final String pageName, final Locale loc) {
		this.setMsg(msg);
		this.setPageName(pageName);
		this.setLocale(loc);
		this.setKey(key);
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public void setPageName(String pageName) {
		this.pageName = pageName;
	}

	public String getPageName() {
		return pageName;
	}

	public void setLocale(Locale locale) {
		this.locale = locale;
	}

	public Locale getLocale() {
		return locale;
	}

	public void setKey( String key ) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

}
